import * as PathUtils from "../utils/pathUtils";
import { StageList } from "@model/stage";
import { defineStore } from "pinia";

const UseStage = defineStore("stageList", {
  state() {
    const stageList = PathUtils.stageInit;
    return {
      stageList: stageList,
    };
  },
  actions: {
    setStageList: function (stageList: StageList) {
      // console.log("surfaceSetting", surfaceSetting);
      // console.log('surfaceSetting',...surfaceSetting)
      this.getStageList().setInfo(stageList);
      // this.surfaceSetting.setInfo(...surfaceSetting);
      // this.setting = setting;
    },
    getStageList: function (): StageList {
      return this.stageList;
    },
  },
  getters: {},
});
export default UseStage;
